﻿using System.Windows.Forms;

namespace TCPClient.UI.UserControls
{
    public partial class RedGreenSelectionUserControl : UserControl
    {
        public RedGreenSelectionUserControl()
        {
            InitializeComponent();
        }

        public RadioButton GetGreenRadioButton()
        {
            return radioButtonPicGreen;
        }

        public RadioButton GetRedRadioButton()
        {
            return radioButtonPicRed;
        }

        public RadioButton GetNeuteralRadioButton()
        {
            return radioButtonNeuteral;
        }

        public void ChangeEditingStatus(bool changeToEditable)
        {
            radioButtonNeuteral.Visible = changeToEditable;
            radioButtonPicRed.Visible = changeToEditable;
            radioButtonPicGreen.Visible = changeToEditable;
        }

        public bool IsEnabledForEditing()
        {
            return radioButtonPicRed.Visible;
        }
    }
}
